import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/pages/login/Login'
import Home from '@/pages/home/Home'
import Forget from "@/pages/forget/Forget";
import Register from "@/pages/register/Register";
import Personal from "../pages/personal/Personal";
import PersonalIndex from "../pages/personal/component/PersonalIndex";
import PersonalEdit from "../pages/personal/component/PersonalEdit";
import Fabu from '@/pages/fabu/Fabu'
import Message from '@/pages/message/Message'
import Ask from '@/pages/ask/Ask'
import Detail from '@/pages/detail/Detail'
import Food from '@/pages/food/Food'
import Wear from '@/pages/wear/Wear'
import Travel from '@/pages/travel/Travel'
import Address from '../pages/home/components/Address'
import City from '../pages/home/components/City'
import MyAdd from "../pages/fabu/component/MyAdd";
import Search from "../pages/food/Search";
import TourDetail from '@/pages/tourdetail/TourDetail'
import Fooddetail from '@/pages/fooddetail/Fooddetail'
import Wish from '../pages/wishlist/foodlist.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/home',
      name: 'Home',
      component: Home
    },
    {
      path: '/forget',
      name: 'Forget',
      component: Forget
    },
    {
      path: '/register',
      name: 'Register',
      component: Register
    },
    {
      path: '/personal',
      name: 'Personal',
      component:Personal
    },
    {
      path: '/personalindex',
      name: 'PersonalIndex',
      component:PersonalIndex
    },
    {
      path: '/personaledit',
      name: 'PersonalEdit',
      component:PersonalEdit
    },
    {
      path: '/fabu',
      name: 'Fabu',
      component: Fabu
    },
    {
      path: '/message',
      name: 'Message',
      component: Message
    },
    {
      path: '/ask',
      name: '/Ask',
      component: Ask
    },
    {
      path: '/detail/:id',
      name: '/Detail',
      component: Detail
    },
    {
      path: '/food',
      name: '/Food',
      component: Food
    },
    {
      path: '/wear',
      name: '/Wear',
      component: Wear
    },
    {
      path: '/travel',
      name: '/Travel',
      component: Travel
    },
    {
      path: '/address',
      name: '/Address',
      component: Address
    },
    {
      path: '/city',
      name: '/City',
      component:City
    },
    {
      path: '/myadd',
      name: '/MyAdd',
      component:MyAdd
    },
    {
      path: '/search',
      name: '/Search',
      component:Search
    },
    {
      path: '/tourdetail/:id/',
      name: '/TourDetail',
      component: TourDetail
    },
    {
      path: '/fooddetail/:id/',
      name: '/Fooddetail',
      component: Fooddetail
    },
    {
      path: '/wish',
      name: '/Wish',
      component: Wish
    }
  ]
})
